export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  
  {
    path: '/home',
    name: 'home',
    icon: 'home',
    component: './Home',
  },
  {
    path: '/welcome',
    // name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/member/tag/add',
    component: './member/Tag/add',
  },
  {
    path: '/member',
    name: 'member',
    icon: 'user',
    // component: './Welcome',
    routes: [
      {
        path: '/member/list',
        name: 'list',
        component: './member/List',
      },
      {
        path: '/member/tag',
        name: 'tag',
        component: './member/Tag',
      }
    ],
  },
  {
    path: '/order/detail',
    component: './order/detail',
  },
  {
    path: '/order',
    name: 'order',
    icon: 'profile',
    // component: './Order',
    routes: [
      {
        path: '/order/list',
        name: 'list',
        component: './order/List',
      }
    ],
  },
  {
    path: '/product/category/addPage',
    component: './product/Category/addPage',
  },
  {
    path: '/product/freight/add',
    component: './freight/add',
  },
  //编辑运费模版
  {
    path: '/product/freight/edit',
    component: './freight/edit',
  },
  {
    path: '/product/add',
    component: './product/add',
  },
  {
    path: '/product',
    name: 'product',
    icon: 'gift',
    routes: [
      {
        path: '/product/category',
        name: 'category',
        component: './product/Category',
      },
      {
        path: '/product/list',
        name: 'list',
        component: './product/List',
      },
      {
        path: '/product/freight',
        name: 'freight',
        component: './freight/List',
      },
      {
        path: '/product/area',
        name: 'area',
        component: './area/areaSelect',
      }
    ],
  },
  // {
  //   path: '/app/marketing/coupon',
  //   component: './app/Marketing/components/Coupon',
  // },
  {
    path: '/app',
    name: 'app',
    icon: 'inbox',
    // component: './App',
    routes: [
      {
        path: '/app/marketing',
        name: 'marketing',
        component: './app/Marketing',
      },
      {
        path: '/app/marketing/coupon',
        component: './app/Marketing/Coupon',
      },
      {
        path: '/app/marketing/coupon/add',
        component: './app/Marketing/Coupon/Add',
      },
      {
        path: '/app/userMaintain',
        name: 'userMaintain',
        component: './app/UserMaintain',
      }
    ],
  },
  {
    path: '/setting',
    name: 'setting',
    icon: 'setting',
    // component: './Setting',
    routes: [
      {
        path: '/setting/base',
        name: 'base',
        component: './setting/Base',
      }
    ],
  },
  {
    path: '/admin',
    // name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  {
    // name: 'list.table-list',
    icon: 'table',
    path: '/list',
    component: './TableList',
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    component: './404',
  },
];
